home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / contkit.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  905b  |  32 lines

  1. /* CONTEXT KIT   ObjectKit class with linked contextts.
  2.       Leaving this object we set context(used + 1) - it is the way
  3.       to hide context (and to show any context-independent picture
  4.       or "").
  5. */
  6.  
  7. #ifndef __CONTEXT_KIT
  8. #define __CONTEXT_KIT
  9.  
  10. #include "objkit.h"
  11. #include "global.h"
  12. #include "context.h"
  13.  
  14. class ContextKit : public ObjectKit, public Context
  15.     {
  16.     protected:
  17.     char* hot;            // string of hot keys
  18.     public:
  19.     ContextKit(char* HOT = NULL,
  20.            rect STATUSPOS = rect(0, 24, 79, 25),
  21.            int STATUSTYPE = 0, char** STATUSSTRINGS = NULL,
  22.            int* STATUSLIST = NULL);
  23.  
  24.     void setHot(char* ch) { hot = ch; }
  25.     void setType(int t) { statusType = t; }
  26.     void setStrings(char** str) { statusStrings = str; }
  27.     void setList(int* list) { statusList = list; }
  28.     virtual void exe(int act = 0);
  29.     virtual void show();
  30.     };
  31.  
  32. #endif __CONTEXT_KIT